package com.kxmall.huishou.domain.bo;

import com.kxmall.common.core.domain.BaseEntity;
import com.kxmall.common.core.validate.AddGroup;
import com.kxmall.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 用户提现记录业务对象 hs_withdraw_record
 *
 * @author lyrics
 * @date 2023-12-14
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HsWithdrawRecordBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = {EditGroup.class })
    private Long userId;

    /**
     * 提现金额
     */
    @NotNull(message = "提现金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 账户类型,1支付宝，2微信，3银行卡
     */
    @NotNull(message = "账户类型,1支付宝，2微信，3银行卡不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer accountType;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String account;

    /**
     * 收款码图片
     */
    @NotBlank(message = "收款码图片不能为空", groups = { EditGroup.class })
    private String imgUrl;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String realName;

    /**
     * 银行名称
     */
    @NotBlank(message = "银行名称不能为空", groups = { EditGroup.class })
    private String bankName;

    /**
     * 开户行名称
     */
    @NotBlank(message = "开户行名称不能为空", groups = {  EditGroup.class })
    private String bankSubName;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String openId;

    /**
     * 0待审核，1审核通过，待转账，2审核不通过，3转账成功，4转账失败
     */
    @NotNull(message = "0待审核，1审核通过，待转账，2审核不通过，3转账成功，4转账失败不能为空", groups = { EditGroup.class })
    private Integer status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { EditGroup.class })
    private String remark;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空", groups = {  EditGroup.class })
    private String username;


}
